#define _CRT_SECURE_NO_WARNINGS 1

#include"MemoryOption.h"
#include<stdio.h>

int main()
{
	int arr[15] = { 1,2,3,4,5,6,7,8,9,10 };
	int size = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < size; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");

	//my_memcpy(arr+10, arr, 20);
	//my_memcpy(arr, arr+10, 20);
	//my_memcpy(arr, arr+3, 20);
	//my_memcpy(arr+3, arr, 20);
	my_memmove(arr+10, arr, 20);
	//my_memmove(arr, arr+10, 20);
	//my_memmove(arr+1, arr+4, 20);
	//my_memmove(arr+4, arr+1, 20);
	for (int i = 0; i < size; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");

	return 0;
}